/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.javscaz.javscaztools.hashmap;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

/**
 *
 * @author avbravo
 */
public class ManejoHashMap {
 HashMap menuElementos = new HashMap();
  
  public void AgregarElementos(String value, String value2){
        menuElementos.put(value, value2);
  }
  
  public void Leer(){
         Set set = menuElementos.entrySet();
            
            Iterator i = set.iterator();
            
            while (i.hasNext()) {
            Map.Entry me = (Map.Entry) i.next();
                System.out.println(""+ me.getValue() + " "+ me.getKey());
            
            
            
            }
  }   
}
